﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace project
{
    public partial class EmployeeSelect : Form
    {
        public EmployeeSelect()
        {
            InitializeComponent();
            Init();
        }
        public void Init()
        {
            this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            string sql = "SELECT * FROM [dbo].[AdminTable]";
            DataTable dt = DBHelper.GetTable(sql);
            this.dataGridView1.DataSource = dt;
        }

        private void Form10_FormClosing(object sender, FormClosingEventArgs e)
        {

        }

        private void EmployeeSelect_Load(object sender, EventArgs e)
        {
            
        }
    }
}
